package demo1;

import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
//        while (in.hasNextInt()) {
//            int n = in.nextInt();
//            int count = 1 << (n-1);
//            System.out.println(count);
//        }

        int count = 0;
        count = 1 << (n-1);

        System.out.println(count);
    }
}
